import json
import re
class Tool:
    ssep="/dkd/"
    def setSSep(self,i):
        ssep=i

    def __init__(self,name="no name"):
        print(f"a {name} Tool class has been built")
        self.sname=name
    def spliteJson(self,string,sep=ssep):
        return re.split(sep,string)

    def handleJsonToStringList(self,originalJson):
        jsonToString= json.dumps(originalJson)
        stringList= self.spliteJson(jsonToString)
        return stringList

    def jsonReForm(self,string):
        return json.loads(string)


